Repository navigation
fix(steward): recover frozen report contract failures and rebind resumed task leases - #9157
Conversation
…med task leases Signed-off-by: LoopX Agent <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent | model: Gemini | provider: Google | declaration_source: self_reported
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
本次基于当前精确提交 6a5cf1fa4289a094eafeaf74b41330d7a4e416f4 对 PR #9157 完成全量 diff 与本地验证复审:结论为通过(作者本人 PR 由受保护的 COMMENTED 结论替代 GitHub APPROVE)。
动机 / Motivation
受管对话定时汇报的维护者与宿主守护进程在模型返回合法但携带 execution_profile.minimum_scale 缩写值(multi_surface_or_implementation)或恢复已中止/冻结报告 Turn 租约时,会遇到两类阻断结算的问题。此前一旦模型输出 delivery_batch_scale="multi_surface_or_implementation",即使报告正文已生成并通过 validate_private_generation 冻结落盘,也会在 host_result_contract 校验阶段失败且后续每 60 秒循环因 journal 状态停在 host_execute 需重调模型而被 reportSettlementOnly 永久拒绝;同时在 --resume-turn-key 恢复路径下,旧 journal 保留已释放的初代租约版本,导致 todo_completion 后的 refresh_state_run 与 heartbeat 回执对账触发 refresh_task_lease_unavailable 失败。本次修改通过在冻结后归一化合法缩写、增加有界无模型已冻结契约恢复路径,以及在 --resume-turn-key 恢复期间将 heartbeat 回执与写回校验重绑至当前恢复租约,使卡在 host_result_contract 的已冻结日报与原报告恢复链路均可无需重新调用模型安全结算并投递,同时明确不放开未冻结或多次失败报告的跳过准入、不弱化一般任务的 hard_lease 防篡改校验,也不修改报告正文内容与投递规则。
改动思路 / Approach
针对已冻结报告契约阻断与恢复期租约错位两个根因,本 PR 在既有宿主、TS 准入边界与 turn_run_once 结算所有者内做最小精确收敛,复用已有 private-generation.json 校验、answer.final 消息回读及 task_lease 原子快照重绑,当前 PR 边界清晰可控且无需额外调度器或持久化迁移。
| 方案维度 | 不做改动 / 手工篡改数据库或 Journal | 放宽全量 host_result_contract 或全面跳过租约检查 |
当前方案(既有所有者内精确规范化与重绑) |
|---|---|---|---|
| 模型缩写兼容性 | multi_surface_or_implementation 触发硬失败,30 分钟产出被永久丢弃 |
放开 delivery_batch_scale 校验会污染主干共享枚矩形契约 |
仅在 steward_turn 冻结后 _normalize_report_kernel_candidate 将该单一 execution_profile 缩写规范为 multi_surface |
| 已冻结报告无模型恢复 | 已写盘 private-generation.json 却每 60s 报 unavailable 且需重跑 LLM |
直接允许 reinvoke_host=true 无条件免审会破坏单模型约束 |
TS 与 Python 双端校验 attempt_count===1 + host_result_contract + 零副作用 + 已验 private-generation.json 与 answer.final 摘要一致后一次回放 |
--resume-turn-key 租约重绑 |
恢复期新租约完成 Todo 后立即因旧 receipt/lease 冲突报错 | 在 guard_first_writeback_execution 豁免 lease 检验会削弱防重放保护 |
由 read_active_task_lease_epoch 校验当前活跃恢复租约并将新版 prepared_lease_* 追加同步到 heartbeat receipt,refresh_candidate 对已完工 Todo 改走 retired_lease_proof 对齐 |
具体改动 / Changes
无单独书面 RFC 规格:本次改动针对运行期边界与恢复租约所有权缺陷,共涉及 6 个生产模块与 2 个测试文件(总计 +373 / -22 行)。
关键代码讲解
_normalize_report_kernel_candidate与StewardTurnHost.recover_report_settlement(steward_turn.py、steward_turn.py):在reports.freeze成功后调用_normalize_report_kernel_candidate,统一将multi_surface_or_implementation归一为规范multi_surface;针对此前已因该校验失败、但已冻结出有效private-generation.json的 Turn,_frozen_report_contract_recovery按[.admission-resume, .admission-retry, original]有界顺序查找对应的answer.final(需校验request_digest完全一致且result_kind为完成/推进态)与native_loopx.result失败事件,构造replay_frozen_candidate单次无模型回放 runner(禁止二次执行,绝不触碰模型/适配器)。reportSettlementOnly/admitManagedSessionTurn/admitStewardManagedTurn与ManagedSessionTurn.admit(steward_managed_mode.ts、steward_managed_mode.py):在 TS 控制面严格门禁report_frozen_contract_recovery:仅当todo.status === "open"、journal_status === "failed"、completed_phases === ["host_execute", "typed_result"]、decision为resume_from: "host_execute"、effects.host_invoked === true且无任何state_written/quota_spent/scheduler_acknowledged、并且host_attempt_count === 1、validation_stage === "host_result_contract"、generation_verified === true、saved_candidate_verified === true时才放行无模型恢复,非 report Turn 及缺项场景均硬拒绝。read_active_task_lease_epoch、ensure_turn_heartbeat_settlement_receipt与execute_turn_run_once(execution_preparation.py、heartbeat_receipt.py、turn_run_once.py):在--resume-turn-key且native_completion_lease_resolver返回新恢复租约时,通过read_active_task_lease_epoch从当前execution_snapshot读取并核验现行lease_epoch;ensure_turn_heartbeat_settlement_receipt在rebound_lease_fields变动时保留已有 details(含prepared_lease_required、semantic_replan_*、工作区与选择元数据)并追加新版本租约回执(不早退复用陈旧版本);同时在completion_writeback/writeback/on_managed_start_admitted调用bind_heartbeat_settlement_receipt,并对completion_todo_id非空场景传递task_lease_proof=None使其通过刚退休的恢复租约完成对账。
对主干的风险 / Risks
- 边界与反例控制:TS 负向用例覆盖缺少
report_settlement_recovery、saved_candidate_verified=false、validation_stage!="host_result_contract"、host_attempt_count=2、state_written=true与todo.status="done"等情形均抛出拒绝;Python 端replay_frozen_candidate二次触发直接抛ValueError,且read_active_task_lease_epoch对非活跃或密钥不匹配租约立即抛出RefreshTaskLeaseUnavailable。 - 修复既有脆弱回归:本次同步消除了
tests/test_native_steward_reports.py中test_local_frozen_report_recovers_only_native_validation_and_returns_full_body与test_original_pump_resumes_exact_prelaunch_rejection_once_without_replaying_unknown_work在main上的预存refresh_task_lease_unavailable失败(6/6 全部转绿)。 - 本地验证实况:
node --experimental-strip-types --test tests/control_plane_ts/steward_managed_mode.test.ts tests/control_plane_ts/steward_reports.test.ts26/26 PASS;ruff checkPASS;tests/test_steward_report_recovery_and_validator.py7/7 PASS(含multi_surface_or_implementation归一与host_result_contract零模型恢复端到端回归);tests/test_native_steward_reports.py恢复定向 6/6 PASS;loopx canary premerge --from-git-diff --git-diff-base origin/main --tier quick3/3 canaries + 4 direct checks 全部 PASS,公开边界检查PUBLIC_BOUNDARY_CLEAN。
我的整体评价 / Verdict
综合来看,该 PR 精准闭环了日报契约缩写阻断与 --resume-turn-key 恢复租约失配两大问题,不仅彻底解除了已冻结日报无法无模型结算投递的卡死风险,还顺带修复了主干两条恢复回归测试的脆弱失败(improved / improved),改动紧扣现有所有者边界且体量克制(necessary)、向后兼容并保有严格的默认隔离。当前改动不改变报告渲染 UI,无可视化页面差异需要额外核验(未涉及页面交互或视觉回归边界,无需额外截图检查),也未修改任何共享词汇注册表。
English verdict: APPROVE — Exact head 6a5cf1fa4289a094eafeaf74b41330d7a4e416f4 normalizes multi_surface_or_implementation after steward report freezing, introduces a strictly gated no-model report_frozen_contract_recovery path in TypeScript admission and StewardTurnHost.recover_report_settlement, and rebinds resumed task leases and heartbeat settlement receipts across turn_run_once.py, execution_preparation.py, and heartbeat_receipt.py; all targeted TS/Python tests (including previously failing test_native_steward_reports.py recovery cases), ruff, and canary premerge checks passed cleanly locally.
* fix(cli): preserve typed runtime diagnostics in Turn failures Signed-off-by: LoopX Agent <[email protected]> * feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141) Signed-off-by: LoopX Agent <[email protected]> * Keep the prepared Chat adapter available to a retry (#9134) A failed worker start can finish cleanup after a same-turn retry has selected the adapter. Keep its lifetime tied to the Session and let failed dispatch release its own worker registration. The regression asserts one upstream turn and explicit adapter closure with the Session. Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c. (cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover zero-effect monitors and cleared-replan reports (#9143) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145) Signed-off-by: LoopX Agent <[email protected]> * Verify quota gate scope through signed lane references (#9101) * test(quota): verify scoped gates through complete lane references Signed-off-by: LoopX Agent <[email protected]> * Test canonical quota gates in both public response modes Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Test C1 planning and Host input from the original quota capture (#9102) * Use recorded quota decisions in the no-Todo settlement regression Signed-off-by: LoopX Agent <[email protected]> * Exercise the complete Host prompt from the captured quota source Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Prepare the CLI budget baseline with a private Git index (#9103) Signed-off-by: LoopX Agent <[email protected]> * Exercise C1 Goal delivery and bound replan from the saved source (#9104) Signed-off-by: LoopX Agent <[email protected]> * Keep long claim overlap scopes on demand (#9086) * Link long thin-claim overlap lists to their receipts Signed-off-by: LoopX Agent <[email protected]> * Read claim overlap details without copying the lease Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(quota): preserve explicit Monitor Todo selection (#9099) Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts. Signed-off-by: LoopX Agent <[email protected]> * Keep ready Todo scope details on the required context read (#9106) Signed-off-by: LoopX Agent <[email protected]> * Fix archive rollback with custom install directories (#9066) * refactor(core): defer benchmark implementations during capability discovery Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults. Signed-off-by: cicolord <[email protected]> * Defer Yardstick evaluation until an enabled Explore read Signed-off-by: cicolord <[email protected]> * Omit empty Todo summary lanes from ordinary Worker context Signed-off-by: cicolord <[email protected]> * fix(update): honor configured archive directories during rollback Signed-off-by: LoopX Agent <[email protected]> * fix(lark): replay recall guard on current main Signed-off-by: huangruiteng <[email protected]> * docs: record the verified LoopX 2.3.0 release baseline Signed-off-by: LoopX Agent <[email protected]> * Preserve quota spend source when prepared work is admitted Signed-off-by: LoopX Agent <[email protected]> * test(quota): qualify native saved complete-Turn checkpoints Signed-off-by: LoopX Agent <[email protected]> * Retry cleanup of an owned file mutation marker Signed-off-by: LoopX Agent <[email protected]> * Keep synthetic Git-path test data outside the public source scan Signed-off-by: LoopX Agent <[email protected]> * fix(quota): share native preparation wait with readiness Signed-off-by: LoopX Agent <[email protected]> * fix(doctor): bind package update readback to its Python environment Signed-off-by: LoopX Agent <[email protected]> * Keep Doctor discovery separate from service activation Signed-off-by: LoopX Agent <[email protected]> * Verify the recorded Python launcher before Doctor probes it Signed-off-by: LoopX Agent <[email protected]> * fix(desktop): require runtime qualification for macOS preview updates Signed-off-by: LoopX Agent <[email protected]> * fix(quota): reuse replan projection owners during recovery Signed-off-by: LoopX Agent <[email protected]> * Qualify Codex 0.169 native context replay on main Signed-off-by: LoopX Agent <[email protected]> * Stop regenerating retired quota view aliases Signed-off-by: LoopX Agent <[email protected]> * fix: pin deferred native context reads to the original capture Signed-off-by: LoopX Agent <[email protected]> * Keep native capture navigation within small output budgets Signed-off-by: LoopX Agent <[email protected]> * Retire legacy heartbeat work prompt generation Signed-off-by: LoopX Agent <[email protected]> * Capture C1 composition failures as receipt diagnostics Signed-off-by: LoopX Agent <[email protected]> * Recover interrupted native Todo readiness from the original Turn Signed-off-by: LoopX Agent <[email protected]> * Revalidate the original lease before publishing resumed native context Signed-off-by: LoopX Agent <[email protected]> * Fence native readiness publication with the canonical lease writer Signed-off-by: LoopX Agent <[email protected]> * fix(scheduler): keep Codex fallback on the original C1 runtime Signed-off-by: LoopX Agent <[email protected]> * fix(scheduler): pin the originating fallback launchers Signed-off-by: LoopX Agent <[email protected]> * Retire the duplicate Codex App scheduler projection Signed-off-by: LoopX Agent <[email protected]> * Seed the recorded scheduler profile in the elapsed-backoff fixture Signed-off-by: LoopX Agent <[email protected]> * Verify canonical cadence on refused and settled Turns Signed-off-by: LoopX Agent <[email protected]> * Pin named Core commands in saved scheduler fallbacks Signed-off-by: LoopX Agent <[email protected]> * fix(research): preserve saved case addresses when a version cannot open Signed-off-by: LoopX Agent <[email protected]> * Preserve citation focus after a saved study refresh Signed-off-by: LoopX Agent <[email protected]> * Capture authenticated LoopX receipts for Research attention (#8790) * feat(research): capture authenticated LoopX attention receipts Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * fix(research): tighten attention receipt provenance Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * fix(research): publish attention captures after source validation Signed-off-by: huangruiteng <[email protected]> --------- Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: huangruiteng <[email protected]> Co-authored-by: TRAE CLI <[email protected]> Co-authored-by: huangruiteng <[email protected]> * Recover the original Session and Turn from a confirmed Chat task Signed-off-by: huangruiteng <[email protected]> * perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041) * perf(lark,native_chat): avoid full directory reparsing in steward chat loops - Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture. - Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors. - Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated. - Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py. Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): project small recovery metadata fields to stop data_url memory growth Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Retire transitional smoke checks and duplicate execution (#9073) Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074) Signed-off-by: LoopX Agent <[email protected]> * Remove redundant defensive prose from prompts and comments (#9072) Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness. Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072. Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> * Keep original Chat retry errors visible during receipt refresh Signed-off-by: LoopX Agent <[email protected]> * fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077) Signed-off-by: LoopX Agent <[email protected]> * feat(steward): add exact-head PR review signals and protected merge confirmation (#9081) Signed-off-by: LoopX Agent <[email protected]> * feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083) Signed-off-by: LoopX Agent <[email protected]> * refactor(content-ops): slim surface module and eliminate Any (#8961) * refactor(content-ops): slim surface module and eliminate Any Signed-off-by: LoopX Agent <[email protected]> * fix(content-ops): reject malformed angle source_item_ids containers Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085) Signed-off-by: LoopX Agent <[email protected]> * fix(hosts): raise managed service startup readiness timeout to 45s (#9087) Signed-off-by: LoopX Agent <[email protected]> * perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088) Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches. Signed-off-by: LoopX Agent <[email protected]> * refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929) Signed-off-by: LoopX Agent <[email protected]> * perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089) Signed-off-by: LoopX Agent <[email protected]> * refactor(control-plane): split and slim quota monitor_poll_commit (#8885) * refactor(control-plane): split and slim quota monitor_poll_commit Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): preserve legacy lane budget and observation diagnostic order Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939) Signed-off-by: LoopX Agent <[email protected]> * refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911) * refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): respect include_raw_response in retained result recovery Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920) * refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling Signed-off-by: LoopX Agent <[email protected]> * fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093) Signed-off-by: LoopX Agent <[email protected]> * perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096) Signed-off-by: LoopX Agent <[email protected]> * perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098) Signed-off-by: LoopX Agent <[email protected]> * perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100) Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: cicolord <[email protected]> Signed-off-by: LoopX Agent <[email protected]> Signed-off-by: huangruiteng <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> Co-authored-by: cicolord <[email protected]> Co-authored-by: huangruiteng <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897) Signed-off-by: LoopX Agent <[email protected]> * Fix truncated requests and responses in the Codex API relay (#8713) * fix(codex relay): fence incomplete model requests before drain Signed-off-by: LoopX Agent <[email protected]> * fix(codex relay): surface incomplete upstream responses Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b. Signed-off-by: LoopX Agent <[email protected]> * Bound Codex relay writes to clients that stop reading Signed-off-by: LoopX Agent <[email protected]> * Reject upstream chunked responses missing the trailer terminator Signed-off-by: LoopX Agent <[email protected]> * Validate upstream chunk data delimiters before relay completion Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147) Signed-off-by: LoopX Agent <[email protected]> * docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149) Signed-off-by: LoopX Agent <[email protected]> * fix(chat): recover saved answers and diagnose lost workers (#9120) * fix(chat): recover saved answers and diagnose lost workers Signed-off-by: LoopX Agent <[email protected]> * style(lark): keep private_conversations within module line budget Signed-off-by: LoopX Agent <[email protected]> * fix(chat): retain execution_worker_exited in pending backlog count Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(chat): resume steward requests lost before dispatch (#9125) Signed-off-by: LoopX Agent <[email protected]> * fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151) Signed-off-by: LoopX Agent <[email protected]> * fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155) Signed-off-by: LoopX Agent <[email protected]> * fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154) * fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice Signed-off-by: LoopX Agent <[email protected]> * fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157) Signed-off-by: LoopX Agent <[email protected]> * fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159) Signed-off-by: LoopX Agent <[email protected]> * fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158) * fix(control_plane): align lease recovery, settlement readback, and runtime fixtures Signed-off-by: LoopX Agent <[email protected]> * fix(control_plane): forward record_capture in worker outage test and harden version type guard Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160) Signed-off-by: LoopX Agent <[email protected]> * docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162) * docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording Signed-off-by: LoopX Agent <[email protected]> * docs(release): align #9158 and #9161 descriptions with verified commits Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164) Signed-off-by: LoopX Agent <[email protected]> * fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165) Signed-off-by: LoopX Agent <[email protected]> * fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167) Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> Signed-off-by: cicolord <[email protected]> Signed-off-by: huangruiteng <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: Lusen Dong <[email protected]> Co-authored-by: cicolord <[email protected]> Co-authored-by: huangruiteng <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: TRAE CLI <[email protected]>
Summary
delivery_batch_scale: "multi_surface_or_implementation"shorthand to"multi_surface"in_normalize_report_kernel_candidateafter freezing a validated steward periodic report, preventing avoidablehost_result_contractvalidation failures.report_frozen_contract_recovery) in TS admission (steward_managed_mode.ts) andStewardTurnHost.recover_report_settlementwhen a periodic report has already frozenprivate-generation.jsonand saved a verifiedanswer.finaleditorial response whosehost_result_contractfailed athost_attempt_count === 1.read_active_task_lease_epoch, updatedensure_turn_heartbeat_settlement_receipt, andturn_run_once.py) during--resume-turn-keysettlement recovery so completion + writeback use the current active/retired recovery lease instead of failing withrefresh_task_lease_unavailable.Verification
node --experimental-strip-types --test tests/control_plane_ts/steward_managed_mode.test.ts tests/control_plane_ts/steward_reports.test.ts: 26/26 passeduv run --extra test ruff check ...(modified Python files & test): passeduv run --extra test python -m pytest -q tests/test_steward_report_recovery_and_validator.py: 7/7 passeduv run --extra test python -m pytest -q tests/test_native_steward_reports.py -k "test_local_frozen_report_recovers_only_native_validation_and_returns_full_body or test_original_pump_resumes_exact_prelaunch_rejection": 6/6 passeduv run --extra test loopx canary premerge --from-git-diff --git-diff-base origin/main --tier quick: passed (3/3 canaries, 0 failures)